<?php echo $this->render('/manage/header.phtml');?>
<style>
#name,#cover,#coverimage{width:600px;}
</style>
<script type="text/javascript" charset="utf-8" src="/public/ueditor/editor_config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/ueditor/editor_all.js"></script>
<script type="text/javascript">
$(function(){
	//实例化编辑器
    var ue = UE.getEditor('editor');
});
</script>
</head>
<body>
<div id="body-wrapper">
<?php echo $this->render('/manage/sidebar.phtml');?>
<div id="main-content">
    <h2>产品管理-添加产品</h2>
    <div class="clear"></div>
    <div class="content-box">
      <div class="content-box-header">
        <h3>Content box</h3>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
		<form action="/manage/add-product-do" method="post">
			<p>产品名称：<input id="name" type="text" size="18" name="name" /></p>
			<p>图片地址： <input id="cover" type="text" size="18" name="cover" /></p>
			<div class="notification information png_bg"> <a href="#" class="close"><img src="/public/images/admin/icons/cross_grey_small.png" title="Close this notification" alt="close"></a>
				<div>请使用下面编辑器上传图片，上传完成后点击编辑器左上角HTML按钮可以查看图片地址，请将地址复制到图片地址输入框中。</div>
			</div>
			<p>分类： <select id="cate" name="cate">
			<option value="0">设备展示管理</option>
			<?php foreach ($this->categories as $value) {?>
			<option value="<?php echo $value['id'];?>"><?php echo $value['name'];?></option>
			<?php }?>
			</select>
			</p>
			<p>是否在首页显示： <input type="checkbox" name="isshow" /></p>
 			<div>
 				文章内容：
 				<script  id="editor" type="text/plain" name="content">
				</script>
 			</div>
			<input type="submit" value="Submit" />
			</form>
      </div>
    </div>
<?php echo $this->render('/manage/footer.phtml');?>
</div>
</div>
</body>
</html>